#ifndef LOG_H_
#define LOG_H_
#include <iostream>
#include <log4cpp/Category.hh>
#include <log4cpp/FileAppender.hh>
#include <log4cpp/SimpleLayout.hh>
#include <log4cpp/PatternLayout.hh>

class Log {
private:
	log4cpp::Category& category;
	log4cpp::Appender *appender;
	log4cpp::Layout *layout;
	log4cpp::PatternLayout *layoutPattern;

public:
	Log(const std::string& pathLogFile);
	Log(const std::string& pathLogFile, const std::string& format);
	virtual ~Log();

	void logWarning(const std::string& menssage);
	void logError(const std::string& menssage);
	void logInfo(const std::string& menssage);
};

#endif
